const fs = require("fs")
const path = require("path")

// 重命名文件
const oldFile = path.resolve(__dirname, "a.txt")
const newFile = path.resolve(__dirname, "aa.txt")
fs.renameSync(oldFile, newFile)